﻿using FS_Model.Account;
using FS_Model.FileModel;
using FS_Service;
using FS_Unitys;
using FS_Unitys.Basic;
using Microsoft.VisualBasic.Devices;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo
{
    class Program
    {
        static void Main(string[] args)
        {
            //Computer MyComputer = new Computer();
            //string oldPathName = @"C:\Users\kensen\Desktop\2222.xlsx";
            //string newPathName = @"D:\2222.xlsx";

            //File.Move(oldPathName,newPathName);
            ////string newFileName = Path.GetFileName(newPathName);
            ////MyComputer.FileSystem.RenameFile(oldPathName, newFileName);
            //Console.WriteLine("成功");
            //Console.ReadKey();

            string path = @"D:\demo.jpg";
            string movePath = path + ".ed";

            path = path.Replace("//", "\\");

            File.Move(path,movePath);
            Console.WriteLine(path);
            Console.ReadKey();

        }
    }
}
